﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using System.Data;
using BEGDC.Utility.NHibernate;
using Castle.Services.Transaction;
using System.Collections;
using System.Xml;
using Castle.Facilities.NHibernateIntegration;

namespace BEGDC.PreContract.BLL
{
	public partial class ExchangeRate: IExchangeRate
	{
        public System.Decimal GetExchangeRate()
        {
            BEGDC.PreContract.DAL.ExchangeRate rate = this.GetExchangeRate(1);
            if (rate == null)
                throw new BEGDC.Utility.ExceptionManagement.GDCException("2.00002", "汇率不能为零, 请先维护.");
            else
                return rate.Rate.Value;
        }
	}
}



